package com.sh.data.engine.domain.normalization.modeldesign.model.model.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author : changkong
 * @date : 2022/1/17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SaveModelParam {

    // 模型id
    private Long modelId;
    // 主题
    private Long themeId;
    // 项目
    private Long projectId;

    // 中文名
    private String cnName;
    // 英文名(表名)
    private String enName;

    private String schema;

    // 是否支持富文本
    private boolean supportRtf;

    // 模型类型
    private String modelType;
    // 生命周期
    private Integer lifeCycle;
    // 表id
    private Long tblId;

    // 数据密级
    private Long dataSecretId;

    private boolean ignoreTheme;

    // 属性配置(字段列表)
    private List<Field> fields;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Field {
        private String fieldName;
        private String fieldDesc;
        private String fieldType;
        private Boolean required;
        private Boolean isPartition;
    }
}
